package com.demo.my.shop.service.impl;

import com.demo.my.shop.dao.UserDao;
import com.demo.my.shop.entity.User;
import com.demo.my.shop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User getUserByEmail(String email) {
        return userDao.getUserByEmail(email);
    }
}
